﻿using HBase;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;

namespace hCommand.dto.wx {
    public  class RequestPayment {
        public RequestPayment() { }
        public RequestPayment(String prepayId) {
            signType = "RSA";
            nonceStr = Path.GetRandomFileName();
            timeStamp = (TimeUtil.getSecond() + 1)+"";
            package = "prepay_id=" + prepayId;
            paySign = $"{HttpHandler.appId}\n{timeStamp}\n{nonceStr}\n{package}\n";
            paySign = HttpHandler.Sign(paySign);
        }
        public String timeStamp { get; set; }

        public String nonceStr { get; set; }
        public String package { get; set; }
        public String signType { get; set; }

        public String paySign { get; set; }

    }
}
